package com.huaweicloud.sdk.sa.v2.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Objects;

/**
 * 恶意软件
 */
public class CreateIncidentMalware {

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "malware_family")

    private String malwareFamily;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "malware_class")

    private String malwareClass;

    public CreateIncidentMalware withMalwareFamily(String malwareFamily) {
        this.malwareFamily = malwareFamily;
        return this;
    }

    /**
     * 恶意家族
     * @return malwareFamily
     */
    public String getMalwareFamily() {
        return malwareFamily;
    }

    public void setMalwareFamily(String malwareFamily) {
        this.malwareFamily = malwareFamily;
    }

    public CreateIncidentMalware withMalwareClass(String malwareClass) {
        this.malwareClass = malwareClass;
        return this;
    }

    /**
     * 恶意软件分类
     * @return malwareClass
     */
    public String getMalwareClass() {
        return malwareClass;
    }

    public void setMalwareClass(String malwareClass) {
        this.malwareClass = malwareClass;
    }

    @Override
    public boolean equals(java.lang.Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        CreateIncidentMalware that = (CreateIncidentMalware) obj;
        return Objects.equals(this.malwareFamily, that.malwareFamily)
            && Objects.equals(this.malwareClass, that.malwareClass);
    }

    @Override
    public int hashCode() {
        return Objects.hash(malwareFamily, malwareClass);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class CreateIncidentMalware {\n");
        sb.append("    malwareFamily: ").append(toIndentedString(malwareFamily)).append("\n");
        sb.append("    malwareClass: ").append(toIndentedString(malwareClass)).append("\n");
        sb.append("}");
        return sb.toString();
    }

    /**
     * Convert the given object to string with each line indented by 4 spaces
     * (except the first line).
     */
    private String toIndentedString(java.lang.Object o) {
        if (o == null) {
            return "null";
        }
        return o.toString().replace("\n", "\n    ");
    }

}
